<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="portal" uri="/WEB-INF/portal.tld" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
 <%@ include file="/common/plateform/include/common-base.jsp"%>	
<title>审计信息查看</title>
  <!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
  <!-- top start -->
<%@include file="/common/plateform/top.jsp" %>
  <!-- top end -->
  <!-- left start -->
  <%@include file="/common/plateform/left.jsp" %>
  <!-- left end-->
  <div class="content-wrapper">
  		<br/>
		<ol class="breadcrumb bgblue">
			<li>
				<span class="label label-danger font14" >审记日志管理 / 查看审计日志详细</span>
			</li>
		</ol>
    <!-- Main start -->
<section class="content">
<div class="row">
        <div class="col-xs-12">
          <div class="box">
            <!-- /.box-header -->
            <div class="box-body">
            <center>
				<form id="searchFrom" class="form-horizontal">
				<input type="hidden" name="doCode" value="viewLogDetail"/>
				<input type="hidden" name="logId" value="${param.logId }"/>
				</form>
				</center>
            <center id="itemInfo_center"></center>
              <table id="example" class="table table-bordered table-hover" >
                <thead>
                <tr>
                  <th>属性</th>
                  <th>属性名称</th>
                  <th>旧值</th>
                  <th>新值</th>
                </tr>
                </thead>
                <tbody id="myList">
                </tbody>
              </table>
         	    <center>
    	  			  <ul id="pageList"></ul>
        		</center>
            </div>
          </div>
        </div>
      </div>
    </section>
    <!-- Main end -->
  </div>
  <!-- /.content-wrapper -->
  
  <!-- foot start -->
       
 <%@include file="/common/plateform/foot.jsp" %>
</div>    
</body>
<script type="text/template" id="dataList">
	  		<? for ( var i = 0; i < rows.length; i++) {?>
				<tr>
					<td><?=rows[i].propertyEname?></td>
					<td><?=rows[i].propertyName?></td>
					<td><?=rows[i].oldValue?></td>
					<td><?=rows[i].propertyValue?></td>
				</tr>
     		<?}?>
	</script>
<script type="text/template" id="itemInfo">
查看审计日志详细内容&nbsp;&nbsp; 业务名称:<?=ddd.modelBussiness?>&nbsp;&nbsp; <font color=red><?=ddd.logType?></font>
	</script>
<script>
var clickMenu= 'log-model-list';
var id;
$(function () {
	getTableData();
  });

function getTableData(){
	deleteAllRow('example');
	var utrlss="${ctx}/trans/info/";
	alert(utrlss);
	$.ajax({
		   type:'get',
		   url:utrlss,//user_search_url,
		   data:$('#searchFrom').serialize(),
		   dataType:'json',
		   success: function(myData){
			var test ={};
			test.ddd=myData.item;
			var data2 = baidu.template('itemInfo',test);  
			$("#itemInfo_center").html(data2);
			var data = baidu.template('dataList',myData);  
			console.log(myData);
			$("#myList").html(data);
		   }
		});	
  }

function deleteAllRow(tableId){
	var tb = document.getElementById(tableId);
	if(tb){
	     var rowNum=tb.rows.length;
	     for (var i=1;i<rowNum;i++){
	         tb.deleteRow(i);
	         rowNum=rowNum-1;
	         i=i-1;
	     }
     }
}

function cannel(modalId){
	$('#'+modalId).modal('hide');
}

function refresh(){
    //window.location.reload();
	getTableData();
}
</script>
</html>
